window: Remove call to gtk_widget_reset_rc_styles()
authorBenjamin Otte <otte@redhat.com>
Tue, 2 Apr 2013 09:42:54 +0000 (11:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 2 Apr 2013 09:45:44 +0000 (11:45 +0200)
First of all, that call is deprecated. Second, we don't have RC styles
anymore. Third, what that function does today is invalidate style
contexts, but that happens automatically when setting the screen on the
style context later.

So this function is completely unnecessary.

gtk/gtkwindow.c

index 0f5e46bd6a5d18c5dbf59849d075ad1ffd67d7a4..e59584558b12f8700ba9062046a10e5734f62413 100644 (file)
@@ -9779,7 +9779,6 @@ gtk_window_set_screen (GtkWindow *window,
 
   gtk_window_free_key_hash (window);
   priv->screen = screen;
-  gtk_widget_reset_rc_styles (widget);
   if (screen != previous_screen)
     {
       if (previous_screen)